﻿using System;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class Passenger : BusinessObject
	{
        public Passenger()
        {
            AddRule(new ValidateMandatory("FirstName"));
            AddRule(new ValidateMandatory("LastName"));
            AddRule(new ValidateMandatory("PassportNo"));
           
           
        }
        public int PassengerId { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string TitleCode { get; set; }
        public DateTime DateOfBirth { get; set; }
        public string PassportNo { get; set; }
        public DateTime PassportExpiryDate { get; set; }
        public string EmailAddress { get; set; }
        public string ContactNo { get; set; }
	}
}


